package com.hzvdvmc.autosale.socket.event;

/**
 * Created by william on 2017/12/29.
 */

public class CommonEvent {
    public static final int SIGN_SUCCESS = 0;//签到成功
    public static final int PAY_SUCCESS = 1;//支付成功
    public static final int PAY_VERI_SUCCESS = 2;//支付验证成功，准备出货
    public static final int REFRESH_LIST = 3;//刷新列表（价格变更，补货等等）
    public static final int OUT_SUCCESS = 4;//出货成功
    public static final int PAY_VERI_FAILURE = 5;//支付验证失败
    public static final int OUT_FALIURE = 6;//出货失败
    public static final int SERIL_OUT_TIME = 7;//串口超时
    public static final int ONE_KEY_SUPP = 8;//一键补货
    public static final int ONE_KEY_SUPP_FAIL = 9;//一键补货失败
    public static final int OPEN_SETTING_LOGIN = 10;//打开设置
    public static final int NET_DISCONNET = 11;//网络断开
    public static final int NET_RECONNET = 12;//网络重连
    public static final int SOCKET_DISCONNET = 13;//Socket断开
    public static final int SOCKET_RECONNET = 14;//Socket重连
    public static final int REFRESH_ADVERTISEMENT = 15;//Socket重连
    private int value;

    public CommonEvent(int value) {
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }
}
